@import "../common/constants";

.main{
  .wrapper{
    .container-wrapper {
      .main-wrapper {
        .comment-wrapper {
          border-top: 1px solid $lineColor;
          padding-top: 20px;
          overflow: hidden;

          .more-opt{
            /*回复按钮的样式*/
            float: right;
            width: 40px;
            height: 20px;

            button{
              width: 100%;
              height: 100%;
              background-color: $themeColor;
              color: white;
              border-radius: 5px;
            }
          }

          .title {
            color: $mainFontColor;
            font-size: 18px;
            font-weight: 400;
            border-bottom: 1px solid $lineColor;
            padding-bottom: 5px;
          }

          .comment-textarea {
            margin-top: 10px;
            border: 2px solid #ccc;
            border-radius: 5px;
            padding: 6px 10px;
            box-sizing: border-box;
            resize: none;
            width: 100%;
          }

          .nologin-textarea {
            height: 40px;
            line-height: 26px;
            overflow: hidden;
          }

          .login-textarea {
            height: 80px;
          }

          .submit-btn-group {
            text-align: right;
            margin-top: 14px;
            padding-bottom: 5px;
            border-bottom: 1px solid $lineColor;

            .submit-btn {
              background-color: $themeColor;
              padding: 10px 20px;
              color: white;
              border-radius: 5px;
              cursor: pointer;
            }
          }

          .parent-comment-list {
            margin-top: 20px;

            .sub-comment-list{
              margin-top: 20px;

              .sub-li{
                border-top: 1px solid $lineColor;
                padding-top: 20px;
                margin-top: 20px;
              }
            }

            .parent-li {
              border-bottom: 1px solid $lineColor;
              padding-bottom: 20px;
              margin-bottom: 20px;

              .comment-info {
                overflow: hidden;
                height: 40px;
                line-height: 40px;
                color: $assistFontColor;
                font-size: 16px;

                .avatar {
                  float: left;
                  width: 40px;
                  height: 40px;
                  border-radius: 50%;
                }

                .author {
                  float: left;
                  margin-left: 20px;
                }

                .pub-time {
                  float: right;
                }
              }

              .comment-content {
                margin-left: 60px;
                margin-top: 10px;
              }
            }
          }
        }
      }
    }
  }
}
